package com.lyjStudy.train.business.req;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class SkTokenSaveReq {

    /**
     * id
     */

    private Long id;

    /**
     *
     */
                @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")

    @NotNull(message = "�?����】不能为�?")
    private Date date;

    /**
     *
     */

    @NotBlank(message = "�?���α��】不能为�?")
    private String trainCode;

    /**
     *
     */

    @NotNull(message = "�?��������】不能为�?")
    private Integer count;

    /**
     * ����ʱ��
     */
                @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")

    private Date createTime;

    /**
     * �޸�ʱ��
     */
                @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")

    private Date updateTime;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", date=").append(date);
        sb.append(", trainCode=").append(trainCode);
        sb.append(", count=").append(count);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}
